﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace AUV5.Common
{
    public class Enum
    {
        #region  服务信息状态
        public enum ServiceStatus
        {
            /// <summary>
            /// 服务未通过验证，对任何人都不可见！
            /// </summary>
            [Description("服务未通过验证，对任何人都不可见！")]
            Denied = 0,
            /// <summary>
            /// 当前服务正在等待审核，不可见！
            /// </summary>
            [Description("当前服务正在等待审核，不可见！")]
            PendingReview = 11,
            /// <summary>
            /// 挂起状态，可由发布人再次激活！不可见！
            /// </summary>
            [Description("挂起状态，可由发布人再次激活！不可见！")]
            Suspended = 21,
            /// <summary>
            /// 激活状态，对所有人都可见！
            /// </summary>
            [Description("激活状态，对所有人都可见！")]
            Active = 31,
            /// <summary>
            /// 必须在24小时内发货的状态！会显示一个 Express标签
            /// </summary>
            [Description("必须在24小时内发货的状态！会显示一个 Express标签")]
            Express = 41,
            /// <summary>
            /// 置顶信息，由网站工作人员选出优先显示在首页上！
            /// </summary>
            [Description("置顶信息，由网站工作人员选出优先显示在首页上！")]
            Featured = 51
        }
        #endregion

        #region  NetPager类使用的数据排序方式
        public enum SortType
        {
            Asc = 1,
            Desc = 2,
            Multi = 3
        }
        #endregion

        #region##订单状态
        /// <summary>
        /// 订单状态
        /// </summary>
        public enum OrderState
        {
            /// <summary>
            /// 未付款
            /// </summary>
            [Description("未付款")]
            Default = 1,

            /// <summary>
            /// 己付款
            /// </summary>
            [Description("已付款")]
            Payment = 11,

            /// <summary>
            /// 已发货
            /// </summary>
            [Description("已发货")]
            Shipped = 21,

            /// <summary>
            /// 已完成
            /// </summary>
            [Description("已完成")]
            Completed = 31,

            /// <summary>
            /// 系统自动完成
            /// </summary>
            [Description("系统自动完成")]
            SysCompleted = 35,

            /// <summary>
            /// 已评价
            /// </summary>
            [Description("已评价")]
            HasEvaluation = 41,

            /// <summary>
            /// 已互评
            /// </summary>
            [Description("已互评")]
            HasMutualEvaluation = 51,

            /// <summary>
            /// 买家请求取消
            /// </summary>
            [Description("买家请求取消")]
            BuyerRequestClosed = 61,

            /// <summary>
            /// 卖家请求取消
            /// </summary>
            [Description("卖家请求取消")]
            SellerRequestClosed = 71,

            /// <summary>
            /// 买家拒绝取消
            /// </summary>
            [Description("买家拒绝取消")]
            BuyerRefusedToClosed = 81,

            /// <summary>
            /// 卖家拒绝取消
            /// </summary>
            [Description("卖家拒绝取消")]
            SellerRefusedToCloesd = 91,

            /// <summary>
            /// 交易关闭
            /// </summary>
            [Description("交易关闭")]
            Cloesd = 101,

            /// <summary>
            /// 买家强制取消
            /// </summary>
            [Description("买家强制取消")]
            BuyerForceClosed = 111,

            /// <summary>
            /// 卖家制取消
            /// </summary>
            [Description("卖家强制取消")]
            SellerForceClosed = 121
        }
        #endregion

        #region##公告状态
        /// <summary>
        /// 公告状态
        /// </summary>
        public enum bulletinStatus
        {
            /// <summary>
            /// 作为买家
            /// </summary>
            [Description("作为买家")]
            BeBuyer = 1,

            /// <summary>
            /// 作为卖家
            /// </summary>
            [Description("作为卖家")]
            BeSeller = 11
        }
        #endregion

        #region##状态枚举(数据库里所有State枚举)
        /// <summary>
        /// 状态枚举(数据库里所有State枚举)
        /// 创建人：
        /// 创建时间：2011-7-19
        /// </summary>
        public enum auvState
        {
            /// <summary>
            /// 禁用
            /// </summary>
            [Description("Disable")]
            Disable = 0,

            /// <summary>
            /// 启用
            /// </summary>
            [Description("Enabled")]
            Enabled = 1
        }
        #endregion

        #region##删除枚举(数据库里所有IsDel枚举)
        /// <summary>
        /// 删除枚举(数据库里所有IsDel枚举)
        /// 创建人：
        /// 创建时间：2011-7-19 
        /// </summary>
        public enum auvDel
        {
            /// <summary>
            /// 未删除
            /// </summary>
            [Description("NotDel")]
            NotDel = 0,

            /// <summary>
            /// 己删除
            /// </summary>
            [Description("Del")]
            Del = 1
        }
        #endregion

        #region##提现状态
        /// <summary>
        /// 提现状态
        /// </summary>
        public enum auvWithDrawStatus
        { 
            /// <summary>
            /// 撤销请求
            /// </summary>
            [Description("撤销请求")]
            Backout = -1,

            /// <summary>
            ///  提交请求
            /// </summary>
            [Description("提交请求")]
            IsRequest = 0,

            /// <summary>
            ///  正在处理中
            /// </summary>
            [Description("正在处理")]
            Processing = 10,

            /// <summary>
            /// 提现成功
            /// </summary>
            [Description("提现成功")]
            Completed = 20,

            /// <summary>
            /// 关闭提现
            /// </summary>
            [Description("关闭提现")]
            Closed = 101         
        }
        #endregion

        #region 需求状态
        /// <summary>
        /// 需求状态
        /// 11.11.02
        /// Joanna
        /// </summary>
        public enum RequestState
        {
            /// <summary>
            /// 拒绝
            /// </summary>
            [Description("已拒绝")]
            Deny = 0,//拒绝
            /// <summary>
            /// 未处理
            /// </summary>
            [Description("未处理")]
            UnTreated = 1,//未处理
            /// <summary>
            /// 通过
            /// </summary>
            [Description("已通过")]
            Enable = 2//通过
        }
        #endregion

        #region 性别
        public enum Gender
        {
            /// <summary>
            /// 男
            /// </summary>
            [Description("男")]
            Man = 1,
            /// <summary>
            /// 女
            /// </summary>
            [Description("女")]
            Male = 0
        }

        #endregion

        #region 附件类型

        /// <summary>
        /// 附件的文件类型
        /// </summary>
        public enum AttachFormat
        {
            Video = 2,
            Image = 1,
            None = 0
        }

        #endregion

        #region
        public enum ActivationCodeStatus
        {
            /// <summary>
            /// 用于找回密码的Code
            /// </summary>
            ForgetPassword = 10,
            /// <summary>
            /// 用于激活帐户的Code
            /// </summary>
            ActiveUser = 20
        }

        #endregion


        #region  返回值代码
        public enum ReturnValue
        {
            Success = 100,
            IncorrectNumberofArguments = 111,
            InvalidSecretKey = 112,
            IncorrectTypeofArgument = 113,
        }
        #endregion

        public enum WorkShareStatus
        {
            PendingReview = 11,
            Active = 22,
            Recommend = 33
        }
    }
}
